package com.bwda.dsrs.filecenter.service;

import com.bwda.dsrs.filecenter.domain.po.dbinfo.DbInfoPo;
import com.bwda.dsrs.filecenter.domain.condition.dbinfo.DbInfoCondition;

import java.util.List;
import java.util.Map;

/**
 * @author Administrator
 */
public interface DbInfoService extends BaseService<DbInfoPo, DbInfoCondition> {

	/**
	 * 批量删除
	 *
	 * @param ids ids
	 */
	void batchDelete(String ids);

	/**
	 * Test connection boolean
	 *
	 * @param dbId db id
	 * @return the boolean
	 */
	public Boolean testConnection(Integer dbId);

	/**
	 * 测试连通性，把错误信息展示出去
	 *
	 * @param dbId db id
	 * @return map
	 */
	Map<Boolean ,String> testConnections(Integer dbId);

	/**
	 * 不带分页的查询
	 *
	 * @param condition condition
	 * @return list
	 */
	List<DbInfoPo> queryLists(DbInfoCondition condition);
}